package com.jl.mapper;

import com.jl.model.CoalitionRoom;
import com.jl.model.niuniu.CoalitionNiuRoom;
import com.jl.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoomMapper extends MyMapper<CoalitionRoom> {

    @Select("select id,game_type gameType,personal,create_time createTime,create_by createBy from coalition_room where status='1' and id=#{roomId}")
    CoalitionRoom selectById(@Param("roomId")Integer roomId);

    @Select("select id,game_type gameType,personal,create_time createTime,create_by createBy from coalition_room where status='1' and id=#{roomId} and personal='1'")
    CoalitionRoom selectPersonalById(@Param("roomId")Integer roomId);

    CoalitionNiuRoom selectNiuRoomDetail(@Param("id") Integer id);
}
